gdksurface: Ensure some assumptions
authorTimm Bäder <mail@baedert.org>
Thu, 15 Oct 2020 16:51:51 +0000 (18:51 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 22 Oct 2020 15:46:34 +0000 (17:46 +0200)
Just to please scan-build

gdk/gdksurface.c

index 4b485a012d66012cdb63857a77475e90816e072a..c32c17262b4aec4bef7cf63e2b9da4f6c531cfe3 100644 (file)
@@ -2051,6 +2051,9 @@ update_cursor (GdkDisplay *display,
   GdkDeviceGrabInfo *grab;
   GdkCursor *cursor;
 
+  g_assert (display);
+  g_assert (device);
+
   pointer_info = _gdk_display_get_pointer_info (display, device);
   pointer_surface = pointer_info->surface_under_pointer;